﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ProtoType
{
    class Program
    {
        static void Main(string[] args)
        {
            int count = 0;
            if(args.Length < 2)
            {
                Console.WriteLine("gumballmachine <name> <inventory>");
                Console.ReadKey();
                return;
            }

            count = Int32.Parse(args[1]);
            GumballMachine gumballMachine = new GumballMachine(args[0], count);
            GumballMonitor monitor = new GumballMonitor(gumballMachine);

            monitor.report();
            Console.ReadKey();
        }
    }
}
